package com.face.server.repository;

import com.face.server.entity.DormitoryBuild;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by ryan on 2018/1/25.
 */
public interface DormitoryBuildRepository extends MongoRepository<DormitoryBuild,String>{

    DormitoryBuild findByBuildingNum(Integer buildNum);

    Page<DormitoryBuild> findByBuildingNumIn(List<Integer> buildList, Pageable pageable);

    DormitoryBuild findByBuildingNumInAndBuildingNumIs(List<Integer> buildList,Integer buildNum);
}
